#include "stdio.h"
#define N 10
int main(){
	int x[N],i,max,min;
	printf("Please input %d integers:\n",N);
	for(i=0;i<N;i++){
		scanf("%d",&x[i]);
	}
	max=min=x[0];
	for(i=1;i<N;i++){
		if(max<x[i])  max=x[i];
		if(min>x[i])  min=x[i];
	}
	printf("Maximum value is %d\n",max);
	printf("Maximum value is %d\n",min);
	return 0;
}
